package spring;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

/**
 * 创建时间：2025-05-09 13:52
 */
@Service
public class Client {
    @Autowired
    RewardService rewardService;

    @Scheduled(fixedRate = 5000)
    public void test() {
        rewardService.issue(Type.FOOD.name());
        rewardService.issue(Type.HOTEL.name());
        rewardService.issue(Type.TAXI.name());
    }
}
